Home:ALL Converter>How to invoke event on click on message property of AlertController of ionic?

How to invoke event on click on message property of AlertController of ionic?

Ask Time:2018-11-15T18:32:19         Author:Saurabh Deshmukh

Json Formatter

callHelpCenter(){
  let alert = this.alertCtrl.create({
        subTitle: 'Help Center',
        message: "<p (click)='callEn()'>Phone number 12345</p>",
        buttons: ['Dismiss']
   )}
} 

callEn(){
    console.log('clicked');
}

As I have written above code, I want to handle the event on clicking of the message <p>. Tag it's showing in DOM properly but not able to call the function (click)='callEn()' . So how can I handle on click of message of the custom alert in ionic?

Author:Saurabh Deshmukh,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53317417/how-to-invoke-event-on-click-on-message-property-of-alertcontroller-of-ionic
yy